<!--  -->
<!DOCTYPE html>
<html lang="zh">
	<head>
		<meta charset="UTF-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<title>火莲</title>
		<script type="text/javascript" src="https://js.cdn.aliyun.dcloud.net.cn/dev/uni-app/uni.webview.1.5.2.js">
		</script>
	</head>
	<body>

	</body>

	<script>
		function getUrlParams() {
			var params = {};
			var url = window.location.href;
			var queryString = url.substring(url.indexOf('?') + 1);
			var keyValues = queryString.split('&');

			keyValues.forEach(function(keyValue) {
				var pair = keyValue.split('=');
				var key = decodeURIComponent(pair[0]);
				var value = decodeURIComponent(pair[1] || '');

				if (key !== '') {
					if (params[key]) {
						if (Array.isArray(params[key])) {
							params[key].push(value);
						} else {
							params[key] = [params[key], value];
						}
					} else {
						params[key] = value;
					}
				}
			});

			return params;
		}
		
	

		// 示例URL：http://example.com/?name=John&age=25&city=Beijing

		// 使用示例：
		var params = getUrlParams();


		document.addEventListener('UniAppJSBridgeReady', function() {
		    
			var hrefs = location.href.split('?')
			
             
            var urlk = hrefs[1].split('&')[0]

			if (urlk=='shoppay=1') {
				uni.redirectTo({
					url: '/pages/index/suu?' + hrefs[1]
				})
			}else if(urlk == 'erji=1'){
			    uni.redirectTo({
					url: '/pages/shichang/suu?' + hrefs[1]
				})
			}else if(urlk == 'money=1'){
			    uni.redirectTo({
					url: '/pages/user/money?' + hrefs[1]
				})
			}
			
		
			

		});
	</script>
</html>